package com.slz3.business.module.wmsManagement.wmsStockOutItems.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.wmsManagement.wmsStockOutItems.domain.WmsStockOutItems;
import com.slz3.business.module.wmsManagement.wmsStockOutItems.domain.WmsStockOutItemsCondition;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class WmsStockOutItemsResAtomic extends WmsStockOutItemsResExecutor {

    public Mono<ServerResponse> add_$WmsStockOutItemsUpdateLock(ServerRequest req, WmsStockOutItems wmsStockOutItems) {
        return WmsStockOutItemsResSafeValid.add(req, wmsStockOutItems) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.add(req, wmsStockOutItems);
    }

    public Mono<ServerResponse> delete_$WmsStockOutItemsUpdateLock(ServerRequest req, WmsStockOutItemsCondition wmsStockOutItemsCondition) {
        return WmsStockOutItemsResSafeValid.delete(req, wmsStockOutItemsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.delete(req);
    }

    public Mono<ServerResponse> modify_$WmsStockOutItemsUpdateLock(ServerRequest req, WmsStockOutItems wmsStockOutItems) {
        return WmsStockOutItemsResSafeValid.modify(req, wmsStockOutItems) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.modify(req, wmsStockOutItems);
    }

    public Mono<ServerResponse> info_$WmsStockOutItemsUpdateLock(ServerRequest req) {
        return WmsStockOutItemsResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.info(req);
    }

    public Mono<ServerResponse> auditSubmit_$WmsStockOutItemsUpdateLock(ServerRequest req, WmsStockOutItemsCondition wmsStockOutItemsCondition) {
        return WmsStockOutItemsResSafeValid.auditSubmit(req, wmsStockOutItemsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditSubmit(req);
    }

    public Mono<ServerResponse> audit_$WmsStockOutItemsUpdateLock(ServerRequest req, WmsStockOutItemsCondition wmsStockOutItemsCondition) {
        return WmsStockOutItemsResSafeValid.audit(req, wmsStockOutItemsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.audit(req);
    }

    public Mono<ServerResponse> auditReject_$WmsStockOutItemsUpdateLock(ServerRequest req, WmsStockOutItemsCondition wmsStockOutItemsCondition) {
        return WmsStockOutItemsResSafeValid.auditReject(req, wmsStockOutItemsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditReject(req);
    }


    public Mono<ServerResponse> usingEnable_$WmsStockOutItemsUpdateLock(ServerRequest req, WmsStockOutItemsCondition wmsStockOutItemsCondition) {
        return WmsStockOutItemsResSafeValid.usingEnable(req, wmsStockOutItemsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingEnable(req);
    }

    public Mono<ServerResponse> usingDisable_$WmsStockOutItemsUpdateLock(ServerRequest req, WmsStockOutItemsCondition wmsStockOutItemsCondition) {
        return WmsStockOutItemsResSafeValid.usingDisable(req, wmsStockOutItemsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingDisable(req);
    }
}
